#include <my_head.h>

int main(int argc, const char *argv[]){
    int fd = open("fifo3", O_WRONLY);
    char buff[128] = {0};
    while(1){
        fgets(buff, sizeof(buff), stdin);
        buff[strlen(buff)-1] = '\0';
        write(fd, buff, sizeof(buff));
    }
    close(fd);

    return 0;
}